<?php

/* @var $this \yii\web\View */
use app\models\Post;
use yii\helpers\Url;

?>

<div class="mui-content">
    <div class="bgfff">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <?= \app\widgets\AppBannerWidget::widget(['type' => \app\models\Banner::TYPE_POST]); ?>
            </div>
            <div class="swiper-pagination"></div>
        </div>
    </div>
    <div class="user-tab user-tab2">
        <div class="flex">
            <?php $tab_a = Yii::$app->request->get('cid') == Post::CID_TECH ? 'on' : ''; ?>
            <?php $tab_b = Yii::$app->request->get('cid') == Post::CID_PROMOTE ? 'on' : ''; ?>

            <a class="<?= $tab_a; ?>" data-href="<?= Url::to(['', 'cid' => Post::CID_TECH]); ?>"><div>前沿科技</div></a>
            <span>|</span>
            <a class="<?= $tab_b; ?>" data-href="<?= Url::to(['', 'cid' => Post::CID_PROMOTE]); ?>"><div>提升自我</div></a>
        </div>
    </div>

    <div class="user-tab-content">
        <?= $this->render('index_ajax', compact('models')); ?>
    </div>
</div>

